﻿namespace ClassyBlog.Infrastructure.Specs.Unit
{
    using Machine.Specifications;

    [Subject(typeof(NullFormatter))]
    public class when_formatted_with_html_formatter
    {
        const string Input = "<h1>Hello World</h1>";

        static NullFormatter formatter;
        static string output;

        Establish context = () => formatter = new NullFormatter();

        Because of = () => output = formatter.Format(Input);

        It should_return_same_input = () => output.ShouldEqual(Input);
    }
}